
package com.ebupt.migu.music.bannertwo.enums;
import lombok.Getter;


/**
 * 前置条件类型枚举
 * 前置条件属性（1，设备信息；2，app信息；4，运营商；5，渠道标签；6，登录；7，网络环境；8，会员省份；9，达人身份）
 */
@Getter
public enum FropertyEnum {
//	FROPERTY_ENUM_APP(2, "app信息", "App"),
//	FROPERTY_ENUM_CHANNEL(5, "渠道标签", "Channel"),
	FROPERTY_ENUM_EQUIPMENT(1, "设备信息", "Equipment");
//	FROPERTY_ENUM_PROVINCE(4, "分省运营", "Province"),
//	FROPERTY_ENUM_LOGIN(6, "登录", "Login"),
//	FROPERTY_ENUM_OPERATOR(3, "运营商", "Operator");

	final int code;
	final String name;
	final String enname;

	FropertyEnum(int code, String name, String enname) {
		this.code = code;
		this.name = name;
		this.enname = enname;
	}

	public static FropertyEnum get(int code) {
		for (FropertyEnum v : values()) {
			if (v.getCode() == code) {
				return v;
			}
		}
		return null;
	}



}
